package com.island.model;

import java.sql.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import org.springframework.jdbc.support.lob.LobCreator;


@Entity
@Table(name="content_publish")
public class Content {
	
	private int 	content_id; 	//内容主键
	private String 	title;			//题目
	private String 	sub_title;		//副题目
	private String 	author;			//作者
	private String	keyword;		//关键字
	private String	docket;			//内容摘要
	private String	content_text;	//内容
	private String 	classid;		//分类ID
	private String 	pub_user_id;	//发布人ID
	private String 	pub_time;		//发布时间
	private String 	pub_status;		//发布状态
	private String 	last_change_time;//最后修改时间
	private String 	img_name;		 //图片名称
	private String 	video_name;		 //视频名称
	private String 	is_focus;		 //是否焦点内容
	private String 	click_num;		 //点击次数
	
	@Id @GeneratedValue
	    
	@Column(name="content_id", unique=true, nullable=false)
	public int getContent_id() {
		return content_id;
	}
	public void setContent_id(int content_id) {
		this.content_id = content_id;
	}
	@Column(name="title", length=100)
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	@Column(name="sub_title", length=500)
	public String getSub_title() {
		return sub_title;
	}
	public void setSub_title(String sub_title) {
		this.sub_title = sub_title;
	}
	@Column(name="author", length=100)
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	@Column(name="keyword", length=200)
	public String getKeyword() {
		return keyword;
	}
	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}
	@Column(name="docket", length=200)
	public String getDocket() {
		return docket;
	}
	public void setDocket(String docket) {
		this.docket = docket;
	}
	@Lob 
	@Basic(fetch = FetchType.LAZY) 
	@Column(name="content_text", columnDefinition="CLOB", nullable=true) 
	public String getContent_text() {
		return content_text;
	}
	public void setContent_text(String content_text) {
		this.content_text = content_text;
	}
	@Column(name="classid", length=100)
	public String getClassid() {
		return classid;
	}
	public void setClassid(String classid) {
		this.classid = classid;
	}
	@Column(name="pub_user_id", length=100)
	public String getPub_user_id() {
		return pub_user_id;
	}
	public void setPub_user_id(String pub_user_id) {
		this.pub_user_id = pub_user_id;
	}
	@Column(name="pub_time")
	public String getPub_time() {
		return pub_time;
	}
	public void setPub_time(String pub_time) {
		this.pub_time = pub_time;
	}
	@Column(name="pub_status",length=50)
	public String getPub_status() {
		return pub_status;
	}
	public void setPub_status(String pub_status) {
		this.pub_status = pub_status;
	}
	@Column(name="last_change_time")
	public String getLast_change_time() {
		return last_change_time;
	}
	public void setLast_change_time(String last_change_time) {
		this.last_change_time = last_change_time;
	}
	@Column(name="img_name",length=100)
	public String getImg_name() {
		return img_name;
	}
	public void setImg_name(String img_name) {
		this.img_name = img_name;
	}
	@Column(name="video_name",length=100)
	public String getVideo_name() {
		return video_name;
	}
	public void setVideo_name(String video_name) {
		this.video_name = video_name;
	}
	@Column(name="is_focus",length=100)
	public String getIs_focus() {
		return is_focus;
	}
	public void setIs_focus(String is_focus) {
		this.is_focus = is_focus;
	}
	@Column(name="click_num",length=100)
	public String getClick_num() {
		return click_num;
	}
	public void setClick_num(String click_num) {
		this.click_num = click_num;
	}
}
